import request from '@/utils/request'

// 查询归还单子列表
export function listHmzReturnDetail(query) {
  return request({
    url: '/system/HmzReturnDetail/list',
    method: 'get',
    params: query
  })
}

// 查询归还单子详细
export function getHmzReturnDetail(id) {
  return request({
    url: '/system/HmzReturnDetail/' + id,
    method: 'get'
  })
}

// 新增归还单子
export function addHmzReturnDetail(data) {
  return request({
    url: '/system/HmzReturnDetail',
    method: 'post',
    data: data
  })
}

// 修改归还单子
export function updateHmzReturnDetail(data) {
  return request({
    url: '/system/HmzReturnDetail',
    method: 'put',
    data: data
  })
}

// 删除归还单子
export function delHmzReturnDetail(id) {
  return request({
    url: '/system/HmzReturnDetail/' + id,
    method: 'delete'
  })
}
